package com.five;

public class Demo8 {
    public static void main(String[] args) {
        /*
        * 数组：可以吧存储连续相同数据类型的值
        *   怎么定义：
        * */
        int[] ages = new int[5];
        ages[0]=12;
        ages[2]=23;
        System.out.println(ages[0]);

        String[] names={"dd","dddddd"};
        names[0]="vvv";
        System.out.println(names[1]);

        for (int i = 0; i <names.length ; i++) {
            System.out.println(names[i]);
        }
    }
}
